package com.aopeng.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @Description: Seo优化表实体类
* @Author: 谢辉
* @CreateDate: 2020/7/10 20:49
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "aopeng_seo")
public class AopengSeo {

    @TableId(value = "id",type = IdType.AUTO)   //指定id并设置为自增
    private Long id;
    private String webTitle;                    //网站标题
    private String webDescription;              //网站描述
    private String webKeyword;                  //网站关键字
    //字段填充内容
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;                    //创建时间
    private Long creator;                       //创建人
    //字段填充内容
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;                    //修改时间
    private Long updater;                       //修改人
    private Integer isDelete;                   //是否删除 1.未删除 2.已删除


    public AopengSeo(String webTitle, String webDescription, String webKeyword, Long creator, Long updater, Integer isDelete) {
        this.webTitle = webTitle;
        this.webDescription = webDescription;
        this.webKeyword = webKeyword;
        this.creator = creator;
        this.updater = updater;
        this.isDelete = isDelete;
    }

    public AopengSeo(Long id, String webTitle, String webDescription, String webKeyword, Long creator, Long updater, Integer isDelete) {
        this.id = id;
        this.webTitle = webTitle;
        this.webDescription = webDescription;
        this.webKeyword = webKeyword;
        this.creator = creator;
        this.updater = updater;
        this.isDelete = isDelete;
    }
}
